<?php

namespace App\Models;

use Doctrine\DBAL\Exception;
use Illuminate\Database\Eloquent\Model;

class OrderGoods extends Model
{
    protected $table = 'c_order_goods';

    public function course()
    {
        return $this->belongsTo('App\Models\Course', 'goods_id');
    }

    public function works()
    {
        return $this->belongsTo('App\Models\DoctorWorks', 'work_id');
    }
}
